package qx.hyj.petrescue.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletRequest;
import qx.hyj.petrescue.entity.BaseEntity;
import qx.hyj.petrescue.param.ConditionParam;

import java.io.Serializable;
import java.util.List;

public interface IBaseService<T extends BaseEntity<K>, K extends Serializable> extends IService<T> {

    /**
     * 更新信息
     *
     * @param entity 实体
     * @param isNew  是否为新增
     */
    void updateBefore(T entity, boolean isNew);





    List<T> list(ConditionParam<T> ConditionParam, HttpServletRequest request);
}
